package main.java.DMDE.model.relationships;

import main.java.DMDE.model.CardinalityValues;
import main.java.DMDE.model.Entity;

public class RelationshipComponent {
    
    private CardinalityValues minCardinality;
    private CardinalityValues maxCardinality;
    private Entity entity;
    
    public RelationshipComponent() {}
    
    public RelationshipComponent(Entity entity, CardinalityValues min, CardinalityValues max){
	this.setEntity(entity);
	this.setMinCardinality(min);
	this.setMaxCardinality(max);
    }
    
    public RelationshipComponent(Entity entity){
	this.setEntity(entity);
    }

    public CardinalityValues getMinCardinality() {
	return minCardinality;
    }

    public void setMinCardinality(CardinalityValues minCardinality) {
	this.minCardinality = minCardinality;
    }

    public CardinalityValues getMaxCardinality() {
	return maxCardinality;
    }

    public void setMaxCardinality(CardinalityValues maxCardinality) {
	this.maxCardinality = maxCardinality;
    }

    public Entity getEntity() {
	return entity;
    }

    public void setEntity(Entity entity) {
	this.entity = entity;
    }
    
}
